package com.wx.dao;

import com.wx.entity.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentDao {
    @Select("select * from student")
    List<Student> findAll();

    @Insert("INSERT INTO STUDENT VALUES (#{id},#{NAME}, #{age},#{cid})")
    void add(Student student);
}
